import axios from '../utils/index'

export const TrainList = (trainStore: any) => {
    axios({
        url: '/api/train_list',
        method: 'get'
    }).then((res: any) => {
        console.log(res, '车次管理表格数据')
        trainStore.setTrainList(res.list)
    })
}

export const StationList = (stationStore: any) => {
    axios({
        url: '/api/station_list',
        method: 'get'
    }).then((res: any) => {
        console.log(res, '----车站管理列表')
        stationStore.setStationList(res.list)
    })
}